import { useDarkModeContext } from './Context';

export function useDarkMode() {
  return useDarkModeContext() === 'dark';
}

export function useDynamicStyleSheet(dynamicStyleSheet: any) {
  const mode = useDarkModeContext();
  return dynamicStyleSheet[mode];
}

export function useDynamicValue({ light, dark }: { light: any, dark: any }) {
  const mode = useDarkModeContext();
  return mode === 'dark' ? dark : light;
}
